package com.hyjx.framework.uc.depart;

import com.hyjx.framework.orm.IBaseModel;

import java.io.Serializable;
import java.util.Date;
import java.util.HashMap;
import java.util.Map;

/**
 * 单位/部门实体
 *
 * @author wangjd
 */
@SuppressWarnings("serial")
public class DepartModel implements IBaseModel, Serializable {
    /**
     * 部门ID
     * CHAR(32)
     */
    private String depart_id;
    /**
     * 部门编码
     * VARCHAR2(40)
     */
    private String depart_code;
    /**
     * 用于判断修改部门时是否修改code
     */
    private String depart_old_code;
    /**
     * 部门全编
     * VARCHAR2(400)
     */
    private String depart_code_full;
    /**
     * 部门名称
     * VARCHAR2(80)
     */
    private String depart_name;
    /**
     * 部门类型[0:部门; 1:单位]
     * VARCHAR2(2)
     */
    private String depart_type;
    /**
     * 部门层次[码表: 省级,市级,区县级]
     * VARCHAR2(2)
     */
    private String depart_level;
    /**
     * 部门职能[码表]
     * VARCHAR2(4)
     */
    private String depart_funca;
    /**
     * 上级部门编码
     * VARCHAR2(40)
     */
    private String depart_parent_code;
    /**
     * 部门联系
     * VARCHAR2(32)
     */
    private String depart_conta_perso;
    /**
     * 办公电话
     * VARCHAR2(32)
     */
    private String office_tel;
    /**
     * 传真号码
     * VARCHAR2(32)
     */
    private String office_fax;
    /**
     * 手机号码
     * VARCHAR2(32)
     */
    private String mobile;
    /**
     * 通讯地址
     * VARCHAR2(100)
     */
    private String conta_add;
    /**
     * 邮政编码
     * VARCHAR2(6)
     */
    private String postal_code;
    /**
     * 行政区划代码
     * VARCHAR2(20)
     */
    private String district_code;
    /**
     * 顺序�?
     * NUMBER
     */
    private String order_no;
    /**
     * 是否有效[Y:是N:否]
     * CHAR(1)
     */
    private String validity;
    /**
     * 上级部门ID
     */
    
    private String nocheck;
    private String is_leaf_node;
    private String levelid;
    private String levelidlen;
    private String org_code;
    private Map<String, String> extData = new HashMap<String, String>();    //扩展信息
    private String rootid;
    private Date create_time;
    private Date update_time;
    
    public Map<String, String> getExtData() {
        return extData;
    }
    
    public void setExtData(Map<String, String> extData) {
        this.extData = extData;
    }
    
    public String getDepart_code() {
        return depart_code;
    }
    
    public void setDepart_code(String departCode) {
        depart_code = departCode;
    }
    
    public String getDepart_code_full() {
        return depart_code_full;
    }
    
    public void setDepart_code_full(String departCodeFull) {
        depart_code_full = departCodeFull;
    }
    
    public String getDepart_name() {
        return depart_name;
    }
    
    public void setDepart_name(String departName) {
        depart_name = departName;
    }
    
    public String getDepart_type() {
        return depart_type;
    }
    
    public void setDepart_type(String departType) {
        depart_type = departType;
    }
    
    public String getDepart_level() {
        return depart_level;
    }
    
    public void setDepart_level(String departLevel) {
        depart_level = departLevel;
    }
    
    public String getDepart_funca() {
        return depart_funca;
    }
    
    public void setDepart_funca(String departFunca) {
        depart_funca = departFunca;
    }
    
    public String getDepart_parent_code() {
        return depart_parent_code;
    }
    
    public void setDepart_parent_code(String depart_parent_code) {
        this.depart_parent_code = depart_parent_code;
    }
    
    public String getDepart_conta_perso() {
        return depart_conta_perso;
    }
    
    public void setDepart_conta_perso(String departContaPerso) {
        depart_conta_perso = departContaPerso;
    }
    
    public String getOffice_tel() {
        return office_tel;
    }
    
    public void setOffice_tel(String officeTel) {
        office_tel = officeTel;
    }
    
    public String getOffice_fax() {
        return office_fax;
    }
    
    public void setOffice_fax(String officeFax) {
        office_fax = officeFax;
    }
    
    public String getMobile() {
        return mobile;
    }
    
    public void setMobile(String mobile) {
        this.mobile = mobile;
    }
    
    public String getConta_add() {
        return conta_add;
    }
    
    public void setConta_add(String contaAdd) {
        conta_add = contaAdd;
    }
    
    public String getPostal_code() {
        return postal_code;
    }
    
    public void setPostal_code(String postalCode) {
        postal_code = postalCode;
    }
    
    public String getDistrict_code() {
        return district_code;
    }
    
    public void setDistrict_code(String districtCode) {
        district_code = districtCode;
    }
    
    public String getOrder_no() {
        return order_no;
    }
    
    public void setOrder_no(String orderNo) {
        order_no = orderNo;
    }
    
    public String getValidity() {
        return validity;
    }
    
    public void setValidity(String validity) {
        this.validity = validity;
    }
    
    public void transformCodeToName() {
    
    }
    
    public String getDepart_old_code() {
        return depart_old_code;
    }
    
    public void setDepart_old_code(String departOldCode) {
        depart_old_code = departOldCode;
    }
    
    public String getNocheck() {
        return nocheck;
    }
    
    public void setNocheck(String nocheck) {
        this.nocheck = nocheck;
    }
    
    public String getIs_leaf_node() {
        return is_leaf_node;
    }
    
    public void setIs_leaf_node(String is_leaf_node) {
        this.is_leaf_node = is_leaf_node;
    }
    
    public String getLevelid() {
        return levelid;
    }
    
    public void setLevelid(String levelid) {
        this.levelid = levelid;
    }
    
    public String getOrg_code() {
        return org_code;
    }
    
    public void setOrg_code(String org_code) {
        this.org_code = org_code;
    }
    
    public String getLevelidlen() {
        return levelidlen;
    }
    
    public void setLevelidlen(String levelidlen) {
        this.levelidlen = levelidlen;
    }
    
    public String getExtDataValue(String key) {
        return extData.get(key);
    }
    
    public void setExtDataValue(String key, String value) {
        extData.put(key, value);
    }
    
    public String getRootid() {
        return rootid;
    }
    
    public void setRootid(String rootid) {
        this.rootid = rootid;
    }
    
    public String getDepart_id() {
        return depart_id;
    }
    
    public void setDepart_id(String depart_id) {
        this.depart_id = depart_id;
    }
    
    public Date getCreate_time() {
        return create_time;
    }
    
    public void setCreate_time(Date create_time) {
        this.create_time = create_time;
    }
    
    public Date getUpdate_time() {
        return update_time;
    }
    
    public void setUpdate_time(Date update_time) {
        this.update_time = update_time;
    }
    
    @Override
    public String getModuleName() {
        return "com.hyjx.framework.uc.depart";
    }
}